﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EF6Demo.Model
{
    /// <summary>
    /// 值对象(复杂类型), 作为Blog的一部分
    /// </summary>
    [ComplexType]
    public class BlogDetails
    {

        public DateTime? DateCreated { get; set; }

        [MaxLength(50)]
        public string Description { get; set; }

        [Timestamp]
        public Byte[] TimeStamp { get; set; }
    }
}
